//package com.example.demo.Interceptor;
//
//import com.auth0.jwt.interfaces.DecodedJWT;
//
//import jakarta.annotation.Resource;
//import jakarta.servlet.http.HttpServletRequest;
//import jakarta.servlet.http.HttpServletResponse;
//
//import org.springframework.stereotype.Component;
//import org.springframework.web.servlet.HandlerInterceptor;
//
//@Component
//public class LoginIncepoter implements HandlerInterceptor {
//
//    @Resource
//    JwtUtils jwtUtils;
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        String token = request.getHeader("Authorization");
//        try {
//            DecodedJWT verify = jwtUtils.verify(token);
//            return true;
//        }catch (Exception e) {
//            return false;
//        }
//    }
//}
